package com.twu.biblioteca;


import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Return implements Task{
    Library library;
    Return(Library library){
        this.library=library;
    }
    @Override
    public void execute() throws Exception {
        BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
        System.out.println("enter a title to return");
        String title = in.readLine();
        library.returnObject(title);
        System.out.println("Thank you for returning");
    }
}
